<template>
  <div class="Adjunctive">
    <van-cell-group>
      <van-cell title="脑电图"
                :value="auxiliaryMsg.exceptionname?'异常':'正常'"
                :label="auxiliaryMsg.exceptionname?auxiliaryMsg.exceptionname:'无'"/>
      <van-cell title="核磁/CT"
                :value="auxiliaryMsg.exceptionbranch?'异常':'正常'"
                :label="auxiliaryMsg.exceptionbranch?auxiliaryMsg.exceptionbranch:'无'"/>
      <van-cell title="基因"
                value="阴性"/>
    </van-cell-group>
  </div>
</template>

<script>
import {mapGetters} from "vuex";

export default {
  name: 'Adjunctive',
  computed: {
    ...mapGetters(['userPhone'])
  },
  data() {
    return {
      auxiliaryMsg: '',
    }
  },
  mounted() {
    this.getAuxiliary();
  },
  methods: {
    //  辅助检查
    getAuxiliary() {
      this.$service.medicalHistoryService.getAuxiliary(this.userPhone).then(res => {
        this.auxiliaryMsg = res.data.data[0];
        console.log('辅助检查=' + JSON.stringify(this.auxiliaryMsg));
      })
    }
  }
}
</script>

<style scoped lang="less">

</style>
